import {request} from 'umi'
interface URa{
    id:string
}

//购物详情
export let getcarLIst =(id:string)=>{
    return request('/goods/detail',{
        method:'get',
        params:{id}
    }) 
}
//添加购物车
export let getcartAdd =(data:string)=>{
    return request('/cart/add',{
        method:'post',
        data
    }) 
}